package com.gugee.ins.common.dal.service.statistics.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.statistics.InsStBloggerCfsExtMapper;
import com.gugee.ins.common.dal.service.statistics.InsStBloggerCfsDao;
import com.gugee.ins.common.model.mysql.statistics.InsStBloggerCfs;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * <p>
 * ins同分类同量级估算排名 dao impl
 * </p>
 *
 * @author HuangXin
 * @since 2021-01-06
 */
@Slf4j
@Service
public class InsStBloggerCfsDaoImpl extends ServiceImpl<InsStBloggerCfsExtMapper, InsStBloggerCfs> implements InsStBloggerCfsDao {
    /**
     * 更新同量级同分类估值表
     * @param category
     * @param followerSize
     * @param total
     * @param now
     */
    @Override
    public void updateStBloggerCfs(String category, int followerSize, int total,long now){
        baseMapper.updateStBloggerCfs(category,followerSize,total,now);
    }

    /**
     * 更新同量级同分类估值表(用存储过程)
     * @param category
     * @param followerSize
     * @param total
     * @param now
     */
    @Override
    public void updateStBloggerCfsByProcedure(String category, int followerSize, int total,long now){
        baseMapper.updateStBloggerCfsByProcedure(category,followerSize,total,now);
    }
}
